package com.xbongbong.paas.manager.feign;

import com.xbongbong.pro.script.pojo.dto.SyncUserToContactDTO;
import com.xbongbong.paas.toolbox.wrap.XbbResponse;
import com.xbongbong.pro.statistic.pojo.vo.ChartCategoryInitVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 同步钉钉环境数据到销帮帮公司
 *
 * @Author: hongxiao
 * @date: 2021-11-14 10:10
 */
@FeignClient(name = "pro-web-script", contextId = "syncDataToXbbFeignClient")
public interface SyncDataToXbbFeignClient {
    /***
     * 同步员工到销帮帮联系人表单
     *
     * @return ChartCategoryInitVO
     * @author hongxiao
     * @date 2021-11-14 11:46
     * @since
     * @version
     */
    @RequestMapping(value = "/pro/v1/script/sync/add/contact/redis", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_UTF8_VALUE, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    XbbResponse<ChartCategoryInitVO> addContactRedis(@RequestBody SyncUserToContactDTO syncUserToContactDTO, @RequestParam("lang") String lang);

}
